﻿package {
	import com.janisRadins.asDraw.Curve;
	import flash.display.Sprite;
	
	public class VisualCurve extends Sprite {
		
		protected var _vectorData:Curve = null;
		public function VisualCurve() {
			_vectorData = new Curve();
		}
		
		public function redraw():void {
			graphics.clear();
			graphics.lineStyle(3, 0xFFFF00);
			graphics.moveTo(0, 0)
			graphics.curveTo(_vectorData.controlX, _vectorData.controlY, _vectorData.anchorX, _vectorData.anchorY);
		}
		
		public function get vectorData():Curve { return _vectorData; }
		public function set vectorData(value:Curve):void {
			_vectorData = value;
		}
	}
}